Open
Conversation
Add a new example app that demonstrates how to upload multiple files to Shelby in a single run. The script scans a directory and uploads all files sequentially with progress output and per-file error handling. Features: - Automatic file discovery from assets directory - Per-file error handling (one failure doesn't stop the rest) - Duplicate blob detection (skips already-uploaded files) - File size display and upload summary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new example app (
apps/batch-upload) that demonstrates how to upload multiple files to Shelby in a single run. This addresses a common use case requested by the community (see shelby/feedback#14).Features:
Structure
Follows the same patterns and conventions as existing examples (
upload-blob,download-blob,list-blob).Test plan
npx @biomejs/biome check apps/batch-upload/)Note
Low Risk
Adds a standalone example app and documentation without changing core SDK or production logic; main risk is minor maintenance drift as APIs evolve.
Overview
Adds a new example app,
apps/batch-upload, showing how to batch upload multiple local files to Shelby in one run.The script scans
assets/, uploads files sequentially with configurable TTL/prefix, reports per-file progress and a final success/fail count, and skips uploads when the blob already exists (viaEBLOB_WRITE_CHUNKSET_ALREADY_EXISTS). Includes a runnablepnpm uploadsetup with.env.example, sample assets, TypeScript config, and a README covering setup/usage/troubleshooting.Written by Cursor Bugbot for commit 80b7aed. This will update automatically on new commits. Configure here.